/*
 * @Author: wangliang
 * @Date: 2018-05-10
 * @description: 机构信息
*/

import { apiHttp } from '../../../apiHttp';
import Api from '../../../../api/company/comOrgController.api';
import ApiOrg from '../../../../api/company/comFundFirmController.api';
import { ComOrgDto, JsonResult } from '../../../../api/Interface';
import { CommonDto } from '../companyInterface';
export default {
    // 添加机构信息
    saveComOrg: async (comOrg: ComOrgDto): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.saveComOrg, comOrg);
        return res;
    },
    // 获取机构信息
    getComOrg: async (companyId: {companyId: number}): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.getComOrg, companyId);
        return res;
    },
    // 修改机构信息
    updateComOrg: async (comOrg: ComOrgDto): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.updateComOrg, comOrg);
        return res;
    },
    // 获取额外的行业标签
    getOtherIndustry: async (orgId: {orgId: number}): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.getComOrg, orgId);
        return res;
    },
    // 管理基金列表
    getComFundFirmPageByManagerId: async (Common: CommonDto): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(ApiOrg.getComFundFirmPageByManagerId, Common);
        return res;
    },
};